package hu.bme.mit.inf.expendables.restservices;

import javax.ws.rs.*;
import javax.ws.rs.core.*;

import com.sun.jersey.multipart.FormDataParam;

@Path("/financial")
public interface IFinancialService {
	
	@GET
	@Path("/viewbalance")
	@Produces(MediaType.TEXT_PLAIN)
	public Response viewBalance(@QueryParam("userid") long userId);
	
	
	@POST
	@Path("/transfermoney")
	@Produces(MediaType.TEXT_PLAIN)
	public Response transferMoney(@FormParam("amount") float amount, @FormParam("bankaccountnumber") int bankaccountnumber, @FormParam("userid") long userId);
	
	
	@GET
	@Path("/buycredit")
	@Produces(MediaType.TEXT_PLAIN)
	public Response buyCredit(@QueryParam("amount") float amount, @QueryParam("customerid") long customerId);
	
}
